
public class StringConvertor {
	public static String toShortString(String string, int maxLenght) {
		int subLength = maxLenght - 3;
		return string.length() < maxLenght ? string: string.substring(0, subLength).concat("...");
	}
}
